package com.xiaoge.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;

/**
 * TODO spring 会递归依赖注入, 所以父类上的@Autowired也会被属性注入
 *
 * @author <a href="mailto:1330137071@qq.com">Zhang Xiao</a>
 * @since
 */
@Service
public class UserService  extends BaseService {

	@Value("${test}")
	private String test;


	public void test() {
		System.out.println(test);
		System.out.println(getOrderService().getOrderName());
	}

}
